package cn.itcast;

import cn.itcast.factory.BeanFactory;
import cn.itcast.service.UserService;

public class App01 {
    public static void main(String[] args) {
        // 创建service对象
        UserService userService = BeanFactory.getBean("userService",UserService.class);
        // 调用方法
        userService.save();
    }
}
